﻿using System.Collections.Generic;
using System;

namespace EmbeddedLanguage
{
    public static class ListEx
    {
        public static List<T> DoForEach<T>(this List<T> List, Action<T> Action)
        {
            if (List != null)
            {
                foreach (T item in List)
                {
                    Action(item);
                }
            }
            return List;
        }

    }
}
